import { pubRequire } from '@utils/public'
const baseUrl = '/works/reviews'
// 获取列表
export function getSearchList(params, callBack, errBack) {
  return pubRequire('get', `${baseUrl}/comments`, params, callBack, errBack)
}
// 通过单个
export function passSingleAPI(id, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/${id}/comments/pass`,
    '',
    callBack,
    errBack
  )
}
// 通过多个
export function passMultAPI(params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/comments/pass`,
    params,
    callBack,
    errBack
  )
}
// 不通过多个
export function failMultRequestAPI(params, callBack, errBack) {
  return pubRequire(
    'put',
    `${baseUrl}/comments/unpass`,
    params,
    callBack,
    errBack
  )
}
